package com.ymm.spark.dao.factory;

import com.ymm.spark.dao.IPageSplitConvertRateDAO;
import com.ymm.spark.dao.ISessionAggrStatDAO;
import com.ymm.spark.dao.ISessionDetailDAO;
import com.ymm.spark.dao.ISessionRandomExtractDAO;
import com.ymm.spark.dao.ITaskDAO;
import com.ymm.spark.dao.ITop10CategoryDAO;
import com.ymm.spark.dao.ITop10SessionDAO;
import com.ymm.spark.dao.impl.IPageSplitConvertRateDAOImpl;
import com.ymm.spark.dao.impl.ISessionAggrStatDAOImpl;
import com.ymm.spark.dao.impl.ISessionDetailDAOImpl;
import com.ymm.spark.dao.impl.ISessionRandomExtractDAOImpl;
import com.ymm.spark.dao.impl.ITaskDAOImpl;
import com.ymm.spark.dao.impl.ITop10CategoryDAOImpl;
import com.ymm.spark.dao.impl.ITop10SessionDAOImpl;
import com.ymm.spark.domain.Task;

/**
 * @author zhangj
 * @date 2019/10/26
 * DAO工厂类
 */
public class DAOFactory {

	public static ITaskDAO getTaskDAO() {
		return new ITaskDAOImpl();
	}

	public static ISessionAggrStatDAO getSessionAggrStatDAO() {
		return new ISessionAggrStatDAOImpl();

	}

	public static ISessionRandomExtractDAO getISessionRandomExtractDAO() {
		return new ISessionRandomExtractDAOImpl();
	}

	public static ISessionDetailDAO getISessionDetailDAO() {
		return new ISessionDetailDAOImpl();
	}

	public static ITop10CategoryDAO getITop10CategoryDAO() {
		return new ITop10CategoryDAOImpl();
	}

	public static ITop10SessionDAO getITop10SessionDAO() {
		return new ITop10SessionDAOImpl();
	}

	public static IPageSplitConvertRateDAO getIPageSplitConvertRateDAO() {
		return new IPageSplitConvertRateDAOImpl();
	}
}
